﻿using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Furion.Core
{
    public class Org: Entity
    {
        public Org()
        {
            CreatedTime = DateTime.Now;
            UpdatedTime = DateTime.Now;
        }


        /// <summary>
        /// 名称
        /// </summary>
        [MaxLength(50), Required, Comment("名称")]
        public string Title { get; set; }


        /// <summary>
        /// 负责人
        /// </summary>
        [Comment("负责人")]
        public long ManagerId { get; set; }


        /// <summary>
        /// 上级Id
        /// </summary>
        [Comment("上级Id")]
        public int ParentId { get; set; }
    }
}
